import Mock from 'mockjs';

Mock.mock(
  RegExp('http://202.120.40.87:14642/api/monitor/data.*'),
  'get',
  () => ({
    status: '200',
    message: 'success',
    data: [
      {
        type: 'LineChart',
        name: 'line1',
        item: [{ timestamp: '2019-11-13T14:06:03+08:00', value: 45 }, { timestamp: '2019-11-13T06:05:57+00:00', value: 105 }, { timestamp: '2019-11-13T05:58:39+00:00', value: 4 }],
      },
      {
        type: 'LineChart',
        name: 'line2',
        item: [{ timestamp: '2019-11-13T14:06:03+08:00', value: 35 }, { timestamp: '2019-11-13T06:05:57+00:00', value: 24 }, { timestamp: '2019-11-13T05:58:39+00:00', value: 18 }],
      },
      {
        type: 'GaugeChart',
        name: 'a完成率',
        item: [{ timestamp: '2019-11-13T14:06:03+08:00', value: 5 }],
      },
      {
        type: 'GaugeChart',
        name: 'b完成率',
        item: [{ timestamp: '2019-11-13T14:06:03+08:00', value: 45 }],
      },
      {
        type: 'GaugeChart',
        name: 'c完成率',
        item: [{ timestamp: '2019-11-13T14:06:03+08:00', value: 23 }],
      },
    ],
  }),
);
